#pragma once

#include <string>
#include <stdlib.h>

struct LinkRecord
{
	std::string subj;
	std::string obj;
	std::string link;

	int compare(LinkRecord*);

	LinkRecord()
		: subj()
		, obj()
		, link()
	{
	}
};

int LinkRecordHash(LinkRecord*);
int LinkRecordCompare(LinkRecord*, LinkRecord*);
int LinkRecordCompareSubject(LinkRecord*, LinkRecord*);
int LinkRecordCompareObject(LinkRecord*, LinkRecord*);
int LinkRecordCompareLink(LinkRecord*, LinkRecord*);
